Eecient Processing of Queries Containing User-deened Predicates
نویسنده
چکیده
Query optimizers often have diiculties with the treatment of user-deened functions. In particular, the optimization of joins involving complex, user-deened predicates rather than just simple arithmetic comparisons may lead to query plans of poor quality. In this paper, we identify a class of user-deened functions that can be included in queries in such a way that eecient query optimization is still possible. For this class of functions, a join between two sets R and S, for example, could still be computed in time signiicantly less than O(jRj jS j). To achieve this goal we introduce the concept of the-function, an operator to process each set separately with respect to the user-deened func-tion(s) being used. These-functions dynamically derive information to constrain subsequent processing steps. The derived information allows in particular the application of an existing index or some other traditional join strategy. After demonstrating this technique on various examples, we present the results of a practical performance evaluation.
منابع مشابه
Optimization of Queries with User
Relational databases provide the ability to store user-deened functions and predicates which can be invoked in SQL queries. When evaluation of a user-deened predicate is relatively expensive, the traditional methods of evaluating predicates as early as possible is no longer a sound heuristic. There are two previous approaches for optimizing such queries. However, none of these approaches is abl...
متن کاملUser - De ned Aggregates for DataminingHaixun
User-deened aggregates can be the linchpin of sophisticated datamining functions and other advanced database applications. This is demonstrated by our eecient implementation on DB2 of SQL3 user-deened aggregates extended with early returns, which we have used to implement several data mining algorithms. Aggregates with early returns are monotonic and can thus be used freely in recursive queries.
متن کاملUser-Defined Aggregates for Datamining
User-deened aggregates can be the linchpin of sophisticated datamining functions and other advanced database applications. This is demonstrated by our eecient implementation on DB2 of SQL3 user-deened aggregates extended with early returns, which we have used to implement several data mining algorithms. Aggregates with early returns are monotonic and can thus be used freely in recursive queries.
متن کاملEecient Processing of Conical Queries
Conical queries are a novel type of query with an increasing number of applications. Traditional index structures and retrieval mechanisms, in general, have been optimized for rectangular and circular queries, rather than conical queries. In this paper, we focus on conical queries which can be deened as a multi-dimensional cone in a multi-dimensional data space. We develop a model for expressin...
متن کاملImplementing Geospatial Operations in an Object-Relational Database System
Over the last decade the need to implement functions into a DBMS that are application-speciic has increased. For this reason today most object-relational DBMS (ORDBMS) provide features that allow the user to include application-speciic functions into the DBMS for their execution within database queries. This paper reports on an implementation eeort to include spatial operations into an ORDBMS a...
متن کامل